﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;

namespace Alma.UX
{
    public class ListBoxItemWithIcon : ListBoxItem
    {
        public ListBoxItemWithIcon() { DefaultStyleKey = typeof(ListBoxItemWithIcon); }

        #region Icon
        public ImageSource Icon
        {
            get { return GetValue(IconProperty) as ImageSource; }
            set { SetValue(IconProperty, value); }
        }

        public static readonly DependencyProperty IconProperty = DependencyProperty.Register(
            "Icon",
            typeof(ImageSource),
            typeof(ListBoxItemWithIcon),
            new PropertyMetadata(null)); 
        #endregion

        public Uri Uri
        {
            get { return GetValue(UriProperty) as Uri; }
            set { SetValue(UriProperty, value); }
        }

        public static readonly DependencyProperty UriProperty = DependencyProperty.Register(
            "Uri",
            typeof(Uri),
            typeof(ListBoxItemWithIcon),
            new PropertyMetadata());
    }
}
